'use strict'
const db = uniCloud.database()
const dbCmd = db.command
exports.main = async (event, context) => {
	const collection = db.collection('picture_category')
	var res = await collection.orderBy('cid', 'asc').orderBy('addDate', 'desc').get()
	return {
		data: res.data
	}
	// return event
}
